package pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class user {
    private String name;
    private String pwd;
    private int age;
    private int sex;
    private int[] hobby;

    public String getSex() {
        String a="男";
        if(sex==2){
            a="女";
        }
        return a;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public int[] getHobby() {
        return hobby;
    }

    public void setHobby(int[] hobby) {
        this.hobby = hobby;
    }
}
